package com.hsgene.goods.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;
import com.hsgene.goods.dto.specification.GoodsSpecificationDto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 商城商品信息Dto
 *
 * @author wangbing
 * @version 1.0, 2018/7/14
 */
public class GoodsMallMoreDto implements Serializable {

    private static final long serialVersionUID = -721535043148964458L;
    /**
     * 商城商品编号
     */
    private String id;

    /**
     * 商品编号
     */
    private String goodsId;

    /**
     * 发布平台：1 = WEB，2 = APP，3 = 小程序
     */
    private Byte platformType;

    /**
     * 主分类
     */
    private Integer mainCategory;

    /**
     * 主分类名字
     */
    private String mainCategoryName;

    /**
     * 子分类
     */
    private Integer subCategory;

    /**
     * 子分类名字
     */
    private String subCategoryName;

    /**
     * 供应商名称
     */
    private String supplierName;

    /**
     * 套餐名称
     */
    private String goodsName;

    /**
     * 封面图
     */
    private String coverUrl;

    /**
     * 套餐商品banner介绍
     */
    private List<GoodsBannerDto> goodsBanners;

    /**
     * 结算价格
     */
    private BigDecimal settlementPrice;

    /**
     * 价格区间开始
     */
    private BigDecimal priceSectionStart;

    /**
     * 价格区间结束
     */
    private BigDecimal priceSectionEnd;

    /**
     * 检测时长
     */
    private Short detectionDuration;

    /**
     * 库存数量
     */
    private Integer inventoryCount;

    /**
     * 规格包装
     */
    private List<GoodsSpecificationDto> specification;

    /**
     * 产品介绍（富文本）
     */
    private String presentation;

    /**
     * 状态：待完善、待发布、已发布、修改申请中、上架中、已下架
     */
    private Byte status;

    /**
     * 状态描述
     */
    private String statusDesc;

    /**
     * 商品检测相关信息Map（key：detection_type = 检测类型：肿瘤，detection_locus = 检测位点（如：EGFR），sample_mode = 采样方式（如：唾液、血液、蜡片），detection_mode = 检测方式（如：芯片、二代测序））
     */
    private Map<String, List<GoodsDetectionDto>> detectionMap;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    /**
     * 标签列表
     */
    private List<String> tags;

    /**
     * 商品促销信息
     */
    private GoodsPromotionDto promotion;

    /**
     * 是否收藏该商品
     */
    private boolean collected = false;

    /**
     * 评论量
     */
    private Integer commentVolume;

    /**
     * 商品独立用户浏览量（人气）
     */
    private Integer userViewVolume;

    /**
     * 商品评分
     */
    private BigDecimal goodsScore;

    /**
     * 浏览此服务的还浏览过的其它服务列表
     */
    private List<SimpleGoodsDto> othersBrowses;

    /**
     * 购买此服务的还购买过的其它服务列表
     */
    private List<SimpleGoodsDto> othersPurchases;

    public GoodsMallMoreDto() {
    }

    public String getMainCategoryName() {
        return mainCategoryName;
    }

    public void setMainCategoryName(String mainCategoryName) {
        this.mainCategoryName = mainCategoryName;
    }

    public String getSubCategoryName() {
        return subCategoryName;
    }

    public void setSubCategoryName(String subCategoryName) {
        this.subCategoryName = subCategoryName;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Byte getPlatformType() {
        return platformType;
    }

    public void setPlatformType(Byte platformType) {
        this.platformType = platformType;
    }

    public Integer getMainCategory() {
        return mainCategory;
    }

    public void setMainCategory(Integer mainCategory) {
        this.mainCategory = mainCategory;
    }

    public Integer getSubCategory() {
        return subCategory;
    }

    public void setSubCategory(Integer subCategory) {
        this.subCategory = subCategory;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public List<GoodsBannerDto> getGoodsBanners() {
        return goodsBanners;
    }

    public void setGoodsBanners(List<GoodsBannerDto> goodsBanners) {
        this.goodsBanners = goodsBanners;
    }

    public BigDecimal getSettlementPrice() {
        return settlementPrice;
    }

    public void setSettlementPrice(BigDecimal settlementPrice) {
        this.settlementPrice = settlementPrice;
    }

    public BigDecimal getPriceSectionStart() {
        return priceSectionStart;
    }

    public void setPriceSectionStart(BigDecimal priceSectionStart) {
        this.priceSectionStart = priceSectionStart;
    }

    public BigDecimal getPriceSectionEnd() {
        return priceSectionEnd;
    }

    public void setPriceSectionEnd(BigDecimal priceSectionEnd) {
        this.priceSectionEnd = priceSectionEnd;
    }

    public Short getDetectionDuration() {
        return detectionDuration;
    }

    public void setDetectionDuration(Short detectionDuration) {
        this.detectionDuration = detectionDuration;
    }

    public Integer getInventoryCount() {
        return inventoryCount;
    }

    public void setInventoryCount(Integer inventoryCount) {
        this.inventoryCount = inventoryCount;
    }

    public List<GoodsSpecificationDto> getSpecification() {
        return specification;
    }

    public void setSpecification(List<GoodsSpecificationDto> specification) {
        this.specification = specification;
    }

    public String getPresentation() {
        return presentation;
    }

    public void setPresentation(String presentation) {
        this.presentation = presentation;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Map<String, List<GoodsDetectionDto>> getDetectionMap() {
        return detectionMap;
    }

    public void setDetectionMap(Map<String, List<GoodsDetectionDto>> detectionMap) {
        this.detectionMap = detectionMap;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public GoodsPromotionDto getPromotion() {
        return promotion;
    }

    public void setPromotion(GoodsPromotionDto promotion) {
        this.promotion = promotion;
    }

    public boolean isCollected() {
        return collected;
    }

    public void setCollected(boolean collected) {
        this.collected = collected;
    }

    public Integer getCommentVolume() {
        return commentVolume;
    }

    public void setCommentVolume(Integer commentVolume) {
        this.commentVolume = commentVolume;
    }

    public BigDecimal getGoodsScore() {
        return goodsScore;
    }

    public void setGoodsScore(BigDecimal goodsScore) {
        this.goodsScore = goodsScore;
    }

    public List<SimpleGoodsDto> getOthersBrowses() {
        return othersBrowses;
    }

    public void setOthersBrowses(List<SimpleGoodsDto> othersBrowses) {
        this.othersBrowses = othersBrowses;
    }

    public List<SimpleGoodsDto> getOthersPurchases() {
        return othersPurchases;
    }

    public void setOthersPurchases(List<SimpleGoodsDto> othersPurchases) {
        this.othersPurchases = othersPurchases;
    }

    public Integer getUserViewVolume() {
        return userViewVolume;
    }

    public void setUserViewVolume(Integer userViewVolume) {
        this.userViewVolume = userViewVolume;
    }
}
